/*
 * socket_base.cpp
 *
 *  Created on: 2008-11-29
 *      Author: ant
 */

#include "socket_base.h"

#if defined(PLATFORM_WIN32)

BEGIN_NAMESPACE_TOXIC

SocketInitializer::SocketInitializer() {
	WSADATA wsa;
	if (WSAStartup(MAKEWORD(2, 2), &wsa) != 0) {
		// TODO
	}
}

SocketInitializer::~SocketInitializer() {
	WSACleanup();
}

END_NAMESPACE_TOXIC

#endif
